import $http from '../../../servers/http';
import { Result } from 'seats/schema/Result';
import { SeatManageRequest, SeatManageInfo } from 'admin/schema/SeatManageReport';

/**查询坐席管理列表(全部报表) */
export const getSeatManageReportList = (
  data: SeatManageRequest
): Promise<Result<SeatManageInfo[]>> => {
  return $http.get({
    url: `/icms/taskmanage/report/seats`,
    data,
  });
};

/**创建下载任务-坐席管理报表-导出 */
export const createSeatManageDownloadTask = (data: SeatManageRequest): Promise<Result<null>> => {
  return $http.post({
    url: '/icms/taskmanage/report/seats/export',
    data,
  });
};
